package com.yuanfud.entity.common;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 分页实体
 * Created by yuanfud
 */
public class PageInfoModel<T> {
    //一页显示的记录数
    @ApiModelProperty("每页显示记录数")
    private int numPerPage;
    //记录总数
    @ApiModelProperty("记录总数")
    private long totalRows;
    //总页数
    @ApiModelProperty("总页数")
    private int totalPages;
    //当前页码
    @ApiModelProperty("当前页码")
    private int currentPage;
    //起始行数
    @ApiModelProperty("起始行数")
    private int startIndex;
    //结束行数
    @ApiModelProperty("结束行数")
    private int lastIndex;
    //结果集存放List
    //private List<Map<String, Object>> resultList;
    @ApiModelProperty("结果集")
    private List<T> resultList;

    public int getNumPerPage()
    {
        return numPerPage;
    }

    public void setNumPerPage(int numPerPage)
    {
        this.numPerPage = numPerPage;
    }

    public long getTotalRows()
    {
        return totalRows;
    }

    public void setTotalRows(long totalRows)
    {
        this.totalRows = totalRows;
    }

    public int getTotalPages()
    {
        return totalPages;
    }

    public void setTotalPages(int totalPages)
    {
        this.totalPages = totalPages;
    }

    public int getCurrentPage()
    {
        return currentPage;
    }

    public void setCurrentPage(int currentPage)
    {
        this.currentPage = currentPage;
    }

    public int getStartIndex()
    {
        return startIndex;
    }

    public void setStartIndex(int startIndex)
    {
        this.startIndex = startIndex;
    }

    public int getLastIndex()
    {
        return lastIndex;
    }

    public void setLastIndex(int lastIndex)
    {
        this.lastIndex = lastIndex;
    }
    public List<T> getResultList()
    {
        return resultList;
    }

    public void setResultList(List<T> resultList)
    {
        this.resultList = resultList;
    }
}
